<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/echarts.min.js"></script>

</head>
<body>
    <div id="43e5fb1f4f27458ba12b2d700438751a" class="chart-container" style="width:900px; height:500px;"></div>
    <script>
        var chart_43e5fb1f4f27458ba12b2d700438751a = echarts.init(
            document.getElementById('43e5fb1f4f27458ba12b2d700438751a'), 'white', {renderer: 'canvas'});
        var option_43e5fb1f4f27458ba12b2d700438751a = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "color": [
        "#c23531",
        "#2f4554",
        "#61a0a8",
        "#d48265",
        "#749f83",
        "#ca8622",
        "#bda29a",
        "#6e7074",
        "#546570",
        "#c4ccd3",
        "#f05b72",
        "#ef5b9c",
        "#f47920",
        "#905a3d",
        "#fab27b",
        "#2a5caa",
        "#444693",
        "#726930",
        "#b2d235",
        "#6d8346",
        "#ac6767",
        "#1d953f",
        "#6950a1",
        "#918597"
    ],
    "series": [
        {
            "type": "treemap",
            "name": "Zhengzhou",
            "data": [
                {
                    "value": 55,
                    "city": "\u90d1\u5dde\u5e02",
                    "path": "\u90d1\u5dde\u5e02",
                    "children": [
                        {
                            "value": 12.5,
                            "name": "\u65b0\u90d1\u5e02",
                            "path": "\u90d1\u5dde\u5e02/\u65b0\u90d1\u5e02",
                            "children": [
                                {
                                    "value": 3.5,
                                    "name": "\u9f99\u6e56\u9547",
                                    "path": "\u90d1\u5dde\u5e02/\u65b0\u90d1\u5e02/\u9f99\u6e56\u9547"
                                },
                                {
                                    "value": 3,
                                    "name": "\u65b0\u5efa\u8def\u8857\u9053",
                                    "path": "\u90d1\u5dde\u5e02/\u65b0\u90d1\u5e02/\u65b0\u5efa\u8def\u8857\u9053"
                                },
                                {
                                    "value": 3,
                                    "name": "\u65b0\u534e\u8def\u8857\u9053",
                                    "path": "\u90d1\u5dde\u5e02/\u65b0\u90d1\u5e02/\u65b0\u534e\u8def\u8857\u9053"
                                },
                                {
                                    "value": 3,
                                    "name": "\u5b5f\u5e84\u9547",
                                    "path": "\u90d1\u5dde\u5e02/\u65b0\u90d1\u5e02/\u5b5f\u5e84\u9547"
                                }
                            ]
                        },
                        {
                            "value": 30,
                            "name": "\u91d1\u6c34\u533a",
                            "path": "\u90d1\u5dde\u5e02/\u91d1\u6c34\u533a",
                            "children": [
                                {
                                    "value": 10,
                                    "name": "\u6587\u5316\u8def\u8857\u9053\u529e\u4e8b\u5904",
                                    "path": "\u90d1\u5dde\u5e02/\u91d1\u6c34\u533a/\u6587\u5316\u8def\u8857\u9053\u529e\u4e8b\u5904"
                                },
                                {
                                    "value": 5,
                                    "name": "\u5357\u9633\u65b0\u6751\u8857\u9053\u529e\u4e8b\u5904",
                                    "path": "\u90d1\u5dde\u5e02/\u91d1\u6c34\u533a/\u5357\u9633\u65b0\u6751\u8857\u9053\u529e\u4e8b\u5904"
                                },
                                {
                                    "value": 7,
                                    "name": "\u7ecf\u516b\u8def\u8857\u9053\u529e\u4e8b\u5904",
                                    "path": "\u90d1\u5dde\u5e02/\u91d1\u6c34\u533a/\u7ecf\u516b\u8def\u8857\u9053\u529e\u4e8b\u5904"
                                },
                                {
                                    "value": 4,
                                    "name": "\u5927\u77f3\u6865\u8857\u9053\u529e\u4e8b\u5904",
                                    "path": "\u90d1\u5dde\u5e02/\u91d1\u6c34\u533a/\u5927\u77f3\u6865\u8857\u9053\u529e\u4e8b\u5904"
                                },
                                {
                                    "value": 4,
                                    "name": "\u4eba\u6c11\u8def\u8857\u9053\u529e\u4e8b\u5904",
                                    "path": "\u90d1\u5dde\u5e02/\u91d1\u6c34\u533a/\u4eba\u6c11\u8def\u8857\u9053\u529e\u4e8b\u5904"
                                }
                            ]
                        },
                        {
                            "value": 12.5,
                            "name": "\u4e8c\u4e03\u533a",
                            "path": "\u90d1\u5dde\u5e02/\u4e8c\u4e03\u533a",
                            "children": [
                                {
                                    "value": 12.5,
                                    "name": "\u5927\u5b66\u8def\u8857\u9053\u529e\u4e8b\u5904",
                                    "path": "\u90d1\u5dde\u5e02/\u4e8c\u4e03\u533a/\u5927\u5b66\u8def\u8857\u9053\u529e\u4e8b\u5904"
                                }
                            ]
                        }
                    ]
                }
            ],
            "width": "80%",
            "height": "80%",
            "label": {
                "show": true,
                "position": "inside",
                "margin": 8
            },
            "upperlabel": {
                "show": true,
                "position": "inside",
                "margin": 8
            },
            "drillDownIcon": "\u25b6",
            "roam": true,
            "nodeClick": "zoomToNode",
            "zoomToNodeRatio": 0.1024,
            "levels": [
                {
                    "colorMappingBy": "index",
                    "itemStyle": {
                        "gapWidth": 4,
                        "borderColor": "#555",
                        "borderWidth": 4
                    }
                },
                {
                    "colorSaturation": [
                        0.3,
                        0.6
                    ],
                    "colorMappingBy": "index",
                    "itemStyle": {
                        "gapWidth": 2,
                        "borderWidth": 5,
                        "borderColorSaturation": 0.7
                    }
                },
                {
                    "colorSaturation": [
                        0.3,
                        0.5
                    ],
                    "colorMappingBy": "index",
                    "itemStyle": {
                        "gapWidth": 1,
                        "borderWidth": 0,
                        "borderColorSaturation": 0.6
                    }
                },
                {
                    "colorSaturation": [
                        0.3,
                        0.5
                    ],
                    "colorMappingBy": "index"
                }
            ],
            "colorMappingBy": "index",
            "visibleMin": 10
        }
    ],
    "legend": [
        {
            "data": [
                "Zhengzhou"
            ],
            "selected": {
                "Zhengzhou": true
            },
            "show": true,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14
        }
    ],



    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 2,
        "padding": 5
    },
    "title": [
        {
            "text": "TreeMap-Levels-setting",
            "padding": 5,
            "itemGap": 10
        }
    ]
};
        chart_43e5fb1f4f27458ba12b2d700438751a.setOption(option_43e5fb1f4f27458ba12b2d700438751a);
    </script>
</body>
</html>
